package rjgc.mall.service;

import org.apache.ibatis.annotations.Mapper;
import rjgc.mall.entity.User;
import rjgc.mall.entity.param.OrderInfoParam;
import rjgc.mall.entity.vo.UserRegisterParam;

import java.util.Map;

public interface UserService {
    public void buy(User user,String tradeTime, String tradePlace,Integer goodsId);
    public void freezeGoods(Integer goodsId);
    public void updateOrderInfo(OrderInfoParam orderInfoParam);
    public Map<String,Integer> buy2(User user, String tradeTime, String tradePlace, Integer goodsId);
    public void registered(UserRegisterParam userRegisterParam);
    public User login(String account,String password);
    public void updateInfo(User user);
    public void buy3(Integer userId, String tradeTime, String tradePlace, Integer goodsId);
    public void CancelTrade(Integer id);//用户取消订单
    public void buy4(Integer userId, String tradeTime, String tradePlace, Integer goodsId,Integer num);
    public String buyTemp(Integer userId, String tradeTime, String tradePlace, Integer goodsId);
    public String buyTemp2(Integer userId, String tradeTime, String tradePlace, Integer goodsId ,Float price ,String tradeNo,Integer num);
}
